package com.think.admin.web.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.think.admin.model.dto.role.RoleDTO;
import com.think.admin.model.query.RoleQuery;
import com.think.common.web.mapper.SuperMapper;
import com.think.dao.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author xwj
 * @since 2019-04-08
 */
public interface RoleMapper extends SuperMapper<Role> {

    /**
     * 分页查询角色列表
     *
     * @param page
     * @param roleQuery
     * @return java.util.List<com.think.admin.cient.dto.role.RoleDTO>
     * @author xwj
     * @data 2019/4/10
     */
    List<RoleDTO> selectPageRole(Page<RoleDTO> page, @Param("roleQuery") RoleQuery roleQuery);
}
